package org.mybatis.generator.internal.rules;

import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;

public class MyRules extends RulesDelegate {


    public MyRules(Rules rules) {
        super(rules);
    }

    public boolean generatePrimaryKeyClass() {
        return false;
    }


    public boolean generateSelectByPrimaryKey() {
        return true;
    }


    public boolean generateUpdateByPrimaryKeySelective() {
        return true;
    }

    public boolean generateDeleteByPrimaryKey() {
        return true;
    }


    public FullyQualifiedJavaType calculateAllFieldsClass() {

        String answer;
        IntrospectedTable introspectedTable = getIntrospectedTable();
        return new FullyQualifiedJavaType(
                introspectedTable.getBaseRecordType());
    }

}
